<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script type="text/javascript">
			console.log("这是内部脚本")
			document.write("<h1 style='color: red;'>输出到网页的内容</h1>");
		</script>
		<script src="js/my.js" type="text/javascript" ></script>
	</head>
	<body>
		<a href="javascript:alert(1)">行内脚本</a>
		<button type="button" onclick="javascript:alert(2)">按钮</button>
	</body>
</html>
